<?php

namespace api\models;

use Yii;

/**
 * This is the model class for table "{{%zhibo_history}}".
 *
 * @property integer $id
 * @property integer $title
 * @property integer $room_id
 * @property string $cover_image
 * @property integer $uid
 * @property integer $cid
 * @property string $name
 * @property string $region
 * @property string $tag
 * @property integer $look_nums
 * @property integer $create_time
 * @property integer $end_time
 * @property integer $long_time
 */
class ZhiboHistory extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return '{{%zhibo_history}}';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['title', 'room_id', 'uid', 'cid', 'look_nums', 'create_time', 'end_time', 'long_time'], 'integer'],
            [['cover_image'], 'string', 'max' => 255],
            [['name', 'region'], 'string', 'max' => 32],
            [['tag'], 'string', 'max' => 99],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => Yii::t('app', 'ID'),
            'title' => Yii::t('app', '标题'),
            'room_id' => Yii::t('app', '用户id'),
            'cover_image' => Yii::t('app', '直播封面'),
            'uid' => Yii::t('app', '用户id'),
            'cid' => Yii::t('app', '分类id'),
            'name' => Yii::t('app', '昵称'),
            'region' => Yii::t('app', '地区'),
            'tag' => Yii::t('app', '标签'),
            'look_nums' => Yii::t('app', '观看人数'),
            'create_time' => Yii::t('app', '创建时间'),
            'end_time' => Yii::t('app', '结束时间'),
            'long_time' => Yii::t('app', '直播时长'),
        ];
    }
}
